﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System;

namespace Agile.Models
{
    /// <summary>
    /// 功能模块表
    /// </summary>
    [Table("rbac_module_fast")]
    [Description("模块管理")]
    public partial class Menu : TreeEntity, ITenant, ISoftDelete
    {
        public Menu()
        {
            Name = string.Empty;
            Url = string.Empty;
            IconName = string.Empty;
            Status = 0;
            Code = string.Empty;
        }
        /// <summary>
        /// 所属租户
        /// </summary>
        [Description("所属租户")]
        public virtual string TenantId { get; set; }
        /// <summary>
        /// 软删除
        /// </summary>
        [Description("软删除")]
        public virtual int IsDelete { get; set; }
        /// <summary>
        /// 模块标识
        /// </summary>
        [Description("模块标识")]
        public string Code { get; set; }
        /// <summary>
        /// 访问路径
        /// </summary>
        [Description("访问路径")]
        public string Url { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [Description("图标")]
        public string IconName { get; set; }
        /// <summary>
        /// 当前状态，0：正常，-1：隐藏，不在导航列表中显示
        /// </summary>
        [Description("当前状态")]
        public int Status { get; set; }
        /// <summary>
        /// 类型 0 系统 1 自定义 3 插件 4 频道
        /// </summary>
        [Description("类型")]
        public int Type { get; set; }
        /// <summary>
        /// 是否系统模块
        /// </summary>
        [Description("是否系统模块")]
        public bool IsSys { get; set; }
    }
}